package com.example.demo.web;

import com.example.demo.po.UserManage;
import com.example.demo.util.WxUtil;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@RestController
public class TestController {

    @Value("${com.dudu.realName}")
    private  String realName;
    @Value("${com.dudu.want}")
    private  String want;


    @RequestMapping("index")
    public ModelAndView testReturn(HttpServletRequest request, HttpServletResponse response){
        ModelAndView model = new ModelAndView();
        model.setViewName("index");
        return model;
    }

    @RequestMapping("hiww")
    public String testReturn(){
        WxUtil.getToken();
        return null;
    }

}
